package com.foreverwin.mes.meapi.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-02-18
 */
@TableName("REASON_CODE")
public class ReasonCode extends Model<ReasonCode> {

    private static final long serialVersionUID = 1L;

   @TableField("HANDLE")
   private String handle;
   @TableField("SITE")
   private String site;
   @TableField("REASON_CODE")
   private String reasonCode;
   @TableField("DESCRIPTION")
   private String description;
   @TableField("CATEGORY")
   private String category;
   @TableField("STATUS_BO")
   private String statusBo;
   @TableField("MESSAGE_TYPE_BO")
   private String messageTypeBo;
   @TableField("MODIFIED_DATE_TIME")
   private Date modifiedDateTime;
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getReasonCode() {
      return reasonCode;
   }

   public void setReasonCode(String reasonCode) {
      this.reasonCode = reasonCode;
   }

   public String getDescription() {
      return description;
   }

   public void setDescription(String description) {
      this.description = description;
   }

   public String getCategory() {
      return category;
   }

   public void setCategory(String category) {
      this.category = category;
   }

   public String getStatusBo() {
      return statusBo;
   }

   public void setStatusBo(String statusBo) {
      this.statusBo = statusBo;
   }

   public String getMessageTypeBo() {
      return messageTypeBo;
   }

   public void setMessageTypeBo(String messageTypeBo) {
      this.messageTypeBo = messageTypeBo;
   }

   public Date getModifiedDateTime() {
      return modifiedDateTime;
   }

   public void setModifiedDateTime(Date modifiedDateTime) {
      this.modifiedDateTime = modifiedDateTime;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String REASON_CODE = "REASON_CODE";

   public static final String DESCRIPTION = "DESCRIPTION";

   public static final String CATEGORY = "CATEGORY";

   public static final String STATUS_BO = "STATUS_BO";

   public static final String MESSAGE_TYPE_BO = "MESSAGE_TYPE_BO";

   public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "ReasonCode{" +
         "handle = " + handle +
         ", site = " + site +
         ", reasonCode = " + reasonCode +
         ", description = " + description +
         ", category = " + category +
         ", statusBo = " + statusBo +
         ", messageTypeBo = " + messageTypeBo +
         ", modifiedDateTime = " + modifiedDateTime +
         ", createdDateTime = " + createdDateTime +
         "}";
   }
}